Skip to content

Add support for dynamic handlers#51

Open
Spea wants to merge 1 commit intoliip:3.xfrom
rebuy-de:dynamic-handler-support
Open

Add support for dynamic handlers#51
Spea wants to merge 1 commit intoliip:3.xfrom
rebuy-de:dynamic-handler-support

Conversation

@Spea
Copy link
Copy Markdown
Contributor

@Spea Spea commented Apr 10, 2026

This adds support for (De)Serializer handlers which can be used to modify how a class is (de-)serialized. A good example is the uuid package from symfony or ramsey where the class should be serialized to a string and not an object.

This is (somehwat) a proof of concept to get a discussion starting, because I'm not sure if this is the right approach, but there are some use cases where it just does not make sense to add native support in this library, but rather give the user of the library the possibility to add different (de-)serialization.

This adds support for (De)Serializer handlers which can be used to modify how a class is (de-)serialized. An example here is the `uuid` package from symfony or ramsey where the class should be serialized to a string and not an object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant